home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / include / master-slave.inc < prev   
Encoding:
Text File  |  2003-01-21  |  534 b   |  16 lines  |  [TEXT/CWIE]

  1. connect (master,localhost,root,,test,0,mysql-master.sock);
  2. connect (master1,localhost,root,,test,0,mysql-master.sock);
  3. connect (slave,localhost,root,,test,0,mysql-slave.sock);
  4. connect (slave1,localhost,root,,test,0,mysql-slave.sock);
  5. connection slave;
  6. !slave stop;
  7. @r/slave-stopped.result show status like 'Slave_running';
  8. connection master;
  9. reset master;
  10. connection slave;
  11. reset slave;
  12. # Clean up old test tables
  13. drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
  14. slave start;
  15. @r/slave-running.result show status like 'Slave_running';
  16.